import time
from public.action import *
from public.business import *
from public.testData import *
from public.tools import*
testCase5='DBshopST005_查询流程'
firefox=openBrowser(urlAdmin)
DBshopLoginAdmin(firefox)  # 登录后台
DBshopEnterMenu2(firefox,'销售管理','订单管理')# 进入订单管理
firefox.find_element_by_name('order_sn').send_keys('1594531607860011')
firefox.find_element_by_xpath('//button[@type="submit"]').click()
try:
    firefox.find_element_by_link_text("编辑查看")
    writeLog('%s 测试成功' %testCase5)
except:
    writeLog('%s 测试不成功' %testCase5)
    getPhoto(firefox)
    firefox.quit()
